<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: SystemSharp.Analysis.VarAssignmentSet Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_system_sharp_1_1_analysis_1_1_var_assignment_set.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_system_sharp_1_1_analysis_1_1_var_assignment_set-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SystemSharp.Analysis.VarAssignmentSet Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class captures the set of reaching definitions for each variable of a given context  
 <a href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a8f5e94e3e905906e19c66700e57f603f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a8f5e94e3e905906e19c66700e57f603f">EMergeResult</a> { <a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a8f5e94e3e905906e19c66700e57f603fa4bac8cdf0a968472b519b3b295d0d48b">EMergeResult.NoChange</a>, 
<a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a8f5e94e3e905906e19c66700e57f603faf4ec5f57bd4d31b803312d873be40da9">EMergeResult.Change</a>
 }</td></tr>
<tr class="separator:a8f5e94e3e905906e19c66700e57f603f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a78f7229839d2f3992ffe9d74595018bb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a78f7229839d2f3992ffe9d74595018bb">VarAssignmentSet</a> (int numVariables)</td></tr>
<tr class="memdesc:a78f7229839d2f3992ffe9d74595018bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new instance for a specific number of local variables  <a href="#a78f7229839d2f3992ffe9d74595018bb">More...</a><br/></td></tr>
<tr class="separator:a78f7229839d2f3992ffe9d74595018bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d9c349760703613a0666c434a0fe636"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a7d9c349760703613a0666c434a0fe636">IndicateSideEffects</a> ()</td></tr>
<tr class="memdesc:a7d9c349760703613a0666c434a0fe636"><td class="mdescLeft">&#160;</td><td class="mdescRight">Indicates that there are unmanageable side effects on all local variables, denying the validity of reaching definition information  <a href="#a7d9c349760703613a0666c434a0fe636">More...</a><br/></td></tr>
<tr class="separator:a7d9c349760703613a0666c434a0fe636"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a432b64aa90a8a7c2a4aaeef65f6e7bb3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a432b64aa90a8a7c2a4aaeef65f6e7bb3">HasSideEffects</a> (int localIndex)</td></tr>
<tr class="memdesc:a432b64aa90a8a7c2a4aaeef65f6e7bb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Queries whether there is a possible side effect on a particular variable  <a href="#a432b64aa90a8a7c2a4aaeef65f6e7bb3">More...</a><br/></td></tr>
<tr class="separator:a432b64aa90a8a7c2a4aaeef65f6e7bb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74c43889538964f79dac1fea9a121ad2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a74c43889538964f79dac1fea9a121ad2">SetInitial</a> ()</td></tr>
<tr class="memdesc:a74c43889538964f79dac1fea9a121ad2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs an initial state by indiciating each variable to be reached by a virtual entry point with index -1  <a href="#a74c43889538964f79dac1fea9a121ad2">More...</a><br/></td></tr>
<tr class="separator:a74c43889538964f79dac1fea9a121ad2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58ca9909b9d7936af913bc8e09e4d609"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a58ca9909b9d7936af913bc8e09e4d609">Assign</a> (int localIndex, int rhs)</td></tr>
<tr class="memdesc:a58ca9909b9d7936af913bc8e09e4d609"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the state by adding a reaching definition to a certain variable  <a href="#a58ca9909b9d7936af913bc8e09e4d609">More...</a><br/></td></tr>
<tr class="separator:a58ca9909b9d7936af913bc8e09e4d609"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05d39f38821f17dd2480f3444ea1ac70"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a8f5e94e3e905906e19c66700e57f603f">EMergeResult</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a05d39f38821f17dd2480f3444ea1ac70">Merge</a> (<a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html">VarAssignmentSet</a> other)</td></tr>
<tr class="memdesc:a05d39f38821f17dd2480f3444ea1ac70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Merges another state into this state by taking the set unions of all their respective reaching definitions  <a href="#a05d39f38821f17dd2480f3444ea1ac70">More...</a><br/></td></tr>
<tr class="separator:a05d39f38821f17dd2480f3444ea1ac70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98571dcf9f54d0c4b6254dab78fd8c95"><td class="memItemLeft" align="right" valign="top">IEnumerable&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a98571dcf9f54d0c4b6254dab78fd8c95">GetStorePoints</a> (int localIndex)</td></tr>
<tr class="memdesc:a98571dcf9f54d0c4b6254dab78fd8c95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all reaching definition for a given local variable  <a href="#a98571dcf9f54d0c4b6254dab78fd8c95">More...</a><br/></td></tr>
<tr class="separator:a98571dcf9f54d0c4b6254dab78fd8c95"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class captures the set of reaching definitions for each variable of a given context </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00037">37</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a class="anchor" id="a8f5e94e3e905906e19c66700e57f603f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a8f5e94e3e905906e19c66700e57f603f">SystemSharp.Analysis.VarAssignmentSet.EMergeResult</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a8f5e94e3e905906e19c66700e57f603fa4bac8cdf0a968472b519b3b295d0d48b"></a>NoChange</em>&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a8f5e94e3e905906e19c66700e57f603faf4ec5f57bd4d31b803312d873be40da9"></a>Change</em>&#160;</td><td class="fielddoc">
</td></tr>
</table>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00039">39</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a78f7229839d2f3992ffe9d74595018bb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SystemSharp.Analysis.VarAssignmentSet.VarAssignmentSet </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numVariables</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a new instance for a specific number of local variables </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">numVariables</td><td>number of local variables</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00054">54</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a58ca9909b9d7936af913bc8e09e4d609"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SystemSharp.Analysis.VarAssignmentSet.Assign </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>localIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Updates the state by adding a reaching definition to a certain variable </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">localIndex</td><td>local variable index</td></tr>
    <tr><td class="paramname">rhs</td><td>index of reaching definition</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00097">97</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a98571dcf9f54d0c4b6254dab78fd8c95"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IEnumerable&lt;int&gt; SystemSharp.Analysis.VarAssignmentSet.GetStorePoints </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>localIndex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns all reaching definition for a given local variable </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">localIndex</td><td>local variable index</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>all its reaching definitions</dd></dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00145">145</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a432b64aa90a8a7c2a4aaeef65f6e7bb3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SystemSharp.Analysis.VarAssignmentSet.HasSideEffects </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>localIndex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Queries whether there is a possible side effect on a particular variable </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">localIndex</td><td>local variable index</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether there is a side effect on specified variable</dd></dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00078">78</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a7d9c349760703613a0666c434a0fe636"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SystemSharp.Analysis.VarAssignmentSet.IndicateSideEffects </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Indicates that there are unmanageable side effects on all local variables, denying the validity of reaching definition information </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00064">64</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a05d39f38821f17dd2480f3444ea1ac70"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html#a8f5e94e3e905906e19c66700e57f603f">EMergeResult</a> SystemSharp.Analysis.VarAssignmentSet.Merge </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html">VarAssignmentSet</a>&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Merges another state into this state by taking the set unions of all their respective reaching definitions </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>another state</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>indication whether this state was changed by the merging procedure</dd></dl>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00111">111</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a74c43889538964f79dac1fea9a121ad2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SystemSharp.Analysis.VarAssignmentSet.SetInitial </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs an initial state by indiciating each variable to be reached by a virtual entry point with index -1 </p>

<p>Definition at line <a class="el" href="_dataflow_analysis_8cs_source.html#l00086">86</a> of file <a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_dataflow_analysis_8cs_source.html">DataflowAnalysis.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_system_sharp.html">SystemSharp</a></li><li class="navelem"><a class="el" href="namespace_system_sharp_1_1_analysis.html">Analysis</a></li><li class="navelem"><a class="el" href="class_system_sharp_1_1_analysis_1_1_var_assignment_set.html">VarAssignmentSet</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:51 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
